/*
 * w23q64.c
 *
 *  Created on: 2024年10月30日
 *      Author: zizhong
 */
#include "w25q64.h"

void W25Q_Write_CMD(uint16_t Cmd,uint32_t Addr)
{
//    uint32_t base = mySPI0_BASE;
//    uint16_t txbuf[4];
//    txbuf[0] = Cmd & 0XFF;
//    txbuf[1] = (Addr >> 16) & 0XFF;
//    txbuf[2] = (Addr >> 8) & 0XFF;
//    txbuf[3] = Addr & 0XFF;
//    SPI_pollingFIFOTransaction(base, 8U, txbuf, NULL, 4, 0);
}

uint16_t W25Q_ReadID(void)
{
    uint16_t ReadData = 0;
//    GPIO_writePin(SPI_CS, 0);
//    W25Q_Write_CMD(W25X_ManufactDeviceID, Dummy_Byte);//发送读取ID命令
//    ReadData = SPI_receive16Bits(mySPI0_BASE, SPI_DATA_BIG_ENDIAN, 0X10, 0);
//    GPIO_writePin(SPI_CS, 1);
    return ReadData;
}
